<html>
  <meta charset="utf-8"/>
  <head></head>
  <style>
    .tab {
      border: 1px solid #ccc;
      margin: 10px;
    }
  </style>
  <body>
        <a class="tab">栏目一</a>
    <script>
      const tab = document.querySelector('.tab');
      tab.addEventListener('click', function(e){
        console.log(e.target);
      },false);
    </script>
  </body>
</html>